<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Configuration extends Model
{
    public static $rules = [
        'urlName' => 'required',
//        'companyName' => 'required|in:1,2,3',
//        'publicity' => 'required|max:50',
    ];
    public static $message = [
        'urlName.required' => '网站名称不能为空',
//        'name.max' => '原因名称最多50个字符',
//        'stepId.required'=>'步骤id不能为空',
//        'cid.required'=>'结果id不能为空',
//        'cid.in'=>'结果id参数不正确或无效',
    ];
    protected function getDateFormat()
    {
        return time();
    }
}
